//
//  CRCommentHeader.m
//  CRChatRoom
//
//  Created by CuiFengshuai on 15/11/28.
//  Copyright © 2015年 SecondGroup. All rights reserved.
//

#import "CRCommentHeader.h"

@interface CRCommentHeader ()
@property (nonatomic, weak) UILabel *label;

@end

@implementation CRCommentHeader
- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentView.backgroundColor = CRGlobalBg;
        
        // lable
        UILabel *label = [[UILabel alloc] init];
        label.textColor = CRColor(70, 70, 70);
        label.font = [UIFont systemFontOfSize:14];
        label.x = CRSmallMargin;
        label.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
        [self.contentView addSubview:label];
        self.label = label;
    }
    return self;
}

- (void)setText:(NSString *)text {
    _text = [text copy];
    self.label.text = text;
}

@end
